package javaTest04.exercise02;

import javaTest04.entity.Person;
import javaTest04.exercise02.processor.DBOperation;
import javaTest04.exercise02.processor.ObjectPersistenceAction;
import javaTest04.exercise02.processor.PersonPersistence;

public class SqlAnnoTest {
    public static void main(String[] args) {
        ObjectPersistenceAction objectPersistenceAction = new PersonPersistence();
        objectPersistenceAction.process(Person.class,DBOperation.CREATE);//根据枚举类执行对应的数据库操作
//        objectPersistenceAction.process(Person.class,DBOperation.DROP);//根据枚举类执行对应的数据库操作

    }
}
